import request from '@/utils/request'

// 获取验证码
export function getCaptcha(data: any) {
  return request({
    url: '/auth/captcha/get',
    method: 'post',
    data,
    headers: {
      unAuth: 'true',
    },
  })
}

// 验证验证码
export function checkCaptcha(data: any) {
  return request({
    url: '/auth/captcha/check',
    method: 'post',
    data,
    headers: {
      unAuth: 'true',
    },
  })
}